package cn.wolfcode.luowowo.article.mapper;

import cn.wolfcode.luowowo.article.domain.PersistenceStrategyStatisVO;
import cn.wolfcode.luowowo.article.domain.StrategyDetail;
import cn.wolfcode.luowowo.common.query.StrategyDetailQueryObject;
import org.apache.ibatis.annotations.Param;

import java.util.List;

public interface StrategyDetailMapper {
    int deleteByPrimaryKey(Long id);

    int insert(StrategyDetail record);

    StrategyDetail selectByPrimaryKey(Long id);

    List<StrategyDetail> selectAll();

    int updateByPrimaryKey(StrategyDetail record);

    List<StrategyDetail> selectForList(StrategyDetailQueryObject qo);

    void changeState(@Param("state") int state, @Param("id") Long id);

    List<StrategyDetail> selectDetailsByDestId(Long destId);

    void updateStatisData(PersistenceStrategyStatisVO psvo);

}